using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.Persistent.Base;
using TransLogger.Module.BusinessObjects;

namespace TransLogger.Module.Win.Controllers
{
    public partial class FingerprintEnrollmentController : ViewController
    {
        public FingerprintEnrollmentController()
        {
            InitializeComponent();
            RegisterActions(components);
        }

        private void popupFingerprintWindowShowAction_CustomizeTemplate(object sender, CustomizeTemplateEventArgs e)
        {
            
        }

        private void popupFingerprintWindowShowAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
        {
           
        }

        private void popupFingerprintWindowShowAction_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
        {
            
        }

        private void simpleAction1_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            var form = new FingerEnrollmentForm();
            var res = form.ShowDialog();
            if (res == DialogResult.OK)
            {
                ((Driver) View.CurrentObject).FingerFeature = form.Feature;
            }
        }
    }
}
